package com.medical.dao;

import com.medical.entity.SysArea;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysAreaMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SysArea record);

    int insertSelective(SysArea record);

    SysArea selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysArea record);

    int updateByPrimaryKey(SysArea record);

    List<SysArea> getAllArea(@Param("areaName")String areaName);

    /**
     * 根据areaId获取所有子区域信息列表
     * @return
     */
    List<SysArea> getAreaChilderList(@Param("areaId") String areaId);

}